<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddOnlineStatusAndPublishStatusAndPublishDownStatusAndModerateStatusAndModerateAtAndModerateByAndUserIdToPmtagsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('pmtags', function (Blueprint $table) {
            $table->tinyInteger('online_status')->default(0);
            $table->tinyInteger('publish_status')->default(0);
            $table->tinyInteger('publish_down_status')->default(1);
            $table->tinyInteger('moderate_status')->default(0);
            $table->timestamp('moderate_at')->nullable();
            $table->integer('moderate_by')->default(0);
            $table->integer('user_id')->default(0);
            $table->string('skd_id')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
